package com.sww.pj.sys.dao;

import java.util.List;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface SysUserRoleDao  {


	 @Select("select job_id from sww_roles_user where user_id=#{userId}")
	 List<Integer> findRoleIdsByUserId(Integer userId);
	 
	 int insertObjects(Integer userId,Integer[]roleIds);
	 
	 @Delete("delete from sww_roles_user where user_id=#{userId}")
	 int deleteObjectsByUserId(Integer userId);
	 
	
	
}
